#include <iostream>
#include <unistd.h>

int main()
{
    int fds[2] = {0};
    int n = pipe(fds);
    if(n == 0)
    {
        std::cout << "fds[0]: " << fds[0] << std::endl; // 3
        std::cout << "fds[1]: " << fds[1] << std::endl; // 4
    }
    return 0;
}



